#ifndef READING_
#define READING_
#include <string>
#include <vector>
#include "Poco/Util/IniFileConfiguration.h"
#include "Poco/DateTime.h"
#include "Poco/DateTimeParser.h"
#include "Events.h"
class Event;
using namespace Poco;
using namespace std;
using namespace Poco::Util;
class Event;

class Reading : public Poco::Util::IniFileConfiguration
{
	private:
		int numOfEvents;
		bool checkValidEvent(Event*);
		Event* createEvent(int);
		string intToString(int);
		bool validUser(string);
		bool validEnergy(string);
		bool validEventType(string);
	//	bool notAllEmpty();



	public:

		Reading();
		Reading(const string& fileName);
		Reading(std::istream& istr);
		virtual ~Reading();
		vector<Event*> getAllTheEvents();
		double getUserAcount();
		double getEnergyValue();
		bool getSayaON();
		int getSayaBuing();
		int getLoggerConsolePriority();
		int getLoggerFilePriority();
		void getNumOfEvents();
		string getProperties(string);
		int stringToInt(string);
		double stringToDouble(string);
		string static doubleToString(double index);
};

#endif /*READING_*/
